/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmObat.java
 *
 * Created on Jan 24, 2012, 3:01:52 PM
 */
package SIMRS.RawatInap.view;

import usu.widget.Form;

/**
 *
 * @author asus A42J-i3
 */
public class frmObat extends Form {

    /** Creates new form frmObat */
    public frmObat() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlForm1 = new SIMRS.RawatInap.widget.PnlForm();
        txtUmur = new SIMRS.RawatInap.widget.TextBox();
        label1 = new SIMRS.RawatInap.widget.Label();
        txtJenisPasien = new SIMRS.RawatInap.widget.TextBox();
        label5 = new SIMRS.RawatInap.widget.Label();
        label6 = new SIMRS.RawatInap.widget.Label();
        TxtNoRM = new SIMRS.RawatInap.widget.TextBox();
        label3 = new SIMRS.RawatInap.widget.Label();
        label4 = new SIMRS.RawatInap.widget.Label();
        txtNama = new SIMRS.RawatInap.widget.TextBox();
        txtNoRegistrasi = new SIMRS.RawatInap.widget.TextBox();
        btnKeluar = new SIMRS.RawatInap.widget.button2();
        btnSimpan = new SIMRS.RawatInap.widget.button2();
        btnBatal = new SIMRS.RawatInap.widget.button2();
        label2 = new SIMRS.RawatInap.widget.Label();
        jPanel1 = new javax.swing.JPanel();
        scrollPane1 = new SIMRS.RawatInap.widget.ScrollPane();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblObat = new SIMRS.RawatInap.widget.Table();
        label7 = new SIMRS.RawatInap.widget.Label();
        txtObat = new SIMRS.RawatInap.widget.TextBox();
        txtJumlah = new SIMRS.RawatInap.widget.TextBox();
        label8 = new SIMRS.RawatInap.widget.Label();
        label9 = new SIMRS.RawatInap.widget.Label();
        txtDokter = new SIMRS.RawatInap.widget.TextBox();
        txtApotik = new SIMRS.RawatInap.widget.TextBox();
        label10 = new SIMRS.RawatInap.widget.Label();
        btnTambah = new SIMRS.RawatInap.widget.button2();
        btnHapus = new SIMRS.RawatInap.widget.button2();

        setTitle("[ :: Obat :: ]");
        setAnimationHide(usu.widget.constan.Animation.HIDE_TO_RIGHT);
        setAnimationShow(usu.widget.constan.Animation.SHOW_FROM_TOP);
        setResizable(false);
        setUndecorated(true);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        pnlForm1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(112, 138, 31), 3, true));
        pnlForm1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
        pnlForm1.add(txtUmur, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 160, 70, -1));

        label1.setText("No. Registrasi");
        pnlForm1.add(label1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 130, 90, -1));

        txtJenisPasien.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtJenisPasienActionPerformed(evt);
            }
        });
        pnlForm1.add(txtJenisPasien, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 190, 134, -1));

        label5.setText("Umur");
        pnlForm1.add(label5, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 170, -1, 20));

        label6.setText("Jenis Pasien");
        pnlForm1.add(label6, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 200, -1, -1));
        pnlForm1.add(TxtNoRM, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 160, 134, -1));

        label3.setText("No. RM");
        pnlForm1.add(label3, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 160, -1, -1));

        label4.setText("Nama");
        pnlForm1.add(label4, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 130, 60, -1));
        pnlForm1.add(txtNama, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 130, 240, -1));
        pnlForm1.add(txtNoRegistrasi, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 130, 134, -1));

        btnKeluar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/bt_close.png"))); // NOI18N
        btnKeluar.setText("Keluar");
        btnKeluar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnKeluarActionPerformed(evt);
            }
        });
        pnlForm1.add(btnKeluar, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 440, -1, -1));

        btnSimpan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/bt_simpan.png"))); // NOI18N
        btnSimpan.setText("Simpan");
        pnlForm1.add(btnSimpan, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 440, -1, -1));

        btnBatal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/bt_batal.png"))); // NOI18N
        btnBatal.setText("Batal");
        pnlForm1.add(btnBatal, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 440, -1, -1));

        label2.setForeground(new java.awt.Color(255, 255, 255));
        label2.setText("Form Obat");
        label2.setFont(new java.awt.Font("Tahoma", 1, 24));
        pnlForm1.add(label2, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, -1, -1));

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("[ Input Obat ]"));
        jPanel1.setOpaque(false);

        tblObat.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tblObat);

        scrollPane1.setViewportView(jScrollPane1);

        label7.setText("Obat");

        label8.setText("Jumlah");

        label9.setText("Dokter");

        label10.setText("Apotik");

        btnTambah.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/bt_tambah.png"))); // NOI18N
        btnTambah.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnTambahActionPerformed(evt);
            }
        });

        btnHapus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/bt_hapus.png"))); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(label7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(113, 113, 113)
                                .addComponent(label8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(59, 59, 59)
                                .addComponent(label9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(131, 131, 131)
                                .addComponent(label10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(4, 4, 4)
                                .addComponent(txtObat, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(6, 6, 6)
                                .addComponent(txtJumlah, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(4, 4, 4)
                                .addComponent(txtDokter, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(6, 6, 6)
                                .addComponent(txtApotik, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btnTambah, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnHapus, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(scrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 560, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(label7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(label8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(label9, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(label10, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtObat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtJumlah, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtDokter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtApotik, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(btnTambah, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(7, 7, 7)
                        .addComponent(btnHapus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(scrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 86, Short.MAX_VALUE)
                .addContainerGap())
        );

        pnlForm1.add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 220, 600, 200));

        getContentPane().add(pnlForm1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 620, 490));

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-621)/2, (screenSize.height-493)/2, 621, 493);
    }// </editor-fold>//GEN-END:initComponents

private void txtJenisPasienActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtJenisPasienActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_txtJenisPasienActionPerformed

    private void btnKeluarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnKeluarActionPerformed
        dispose();
        frmTransaksiPelayanan transaksiPelayanan=new frmTransaksiPelayanan();
        transaksiPelayanan.setVisible(true);
    }//GEN-LAST:event_btnKeluarActionPerformed

    private void btnTambahActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTambahActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnTambahActionPerformed

    private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
        dispose();
    }//GEN-LAST:event_formWindowClosing

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private SIMRS.RawatInap.widget.TextBox TxtNoRM;
    private SIMRS.RawatInap.widget.button2 btnBatal;
    private SIMRS.RawatInap.widget.button2 btnHapus;
    private SIMRS.RawatInap.widget.button2 btnKeluar;
    private SIMRS.RawatInap.widget.button2 btnSimpan;
    private SIMRS.RawatInap.widget.button2 btnTambah;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private SIMRS.RawatInap.widget.Label label1;
    private SIMRS.RawatInap.widget.Label label10;
    private SIMRS.RawatInap.widget.Label label2;
    private SIMRS.RawatInap.widget.Label label3;
    private SIMRS.RawatInap.widget.Label label4;
    private SIMRS.RawatInap.widget.Label label5;
    private SIMRS.RawatInap.widget.Label label6;
    private SIMRS.RawatInap.widget.Label label7;
    private SIMRS.RawatInap.widget.Label label8;
    private SIMRS.RawatInap.widget.Label label9;
    private SIMRS.RawatInap.widget.PnlForm pnlForm1;
    private SIMRS.RawatInap.widget.ScrollPane scrollPane1;
    private SIMRS.RawatInap.widget.Table tblObat;
    private SIMRS.RawatInap.widget.TextBox txtApotik;
    private SIMRS.RawatInap.widget.TextBox txtDokter;
    private SIMRS.RawatInap.widget.TextBox txtJenisPasien;
    private SIMRS.RawatInap.widget.TextBox txtJumlah;
    private SIMRS.RawatInap.widget.TextBox txtNama;
    private SIMRS.RawatInap.widget.TextBox txtNoRegistrasi;
    private SIMRS.RawatInap.widget.TextBox txtObat;
    private SIMRS.RawatInap.widget.TextBox txtUmur;
    // End of variables declaration//GEN-END:variables
}
